package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_listwxml implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$

    public _jet_listwxml() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_3_18 = new TagInfo("c:get", //$NON-NLS-1$
            3, 18,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_114 = new TagInfo("c:get", //$NON-NLS-1$
            3, 114,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_20 = new TagInfo("c:get", //$NON-NLS-1$
            4, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_91 = new TagInfo("c:get", //$NON-NLS-1$
            4, 91,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_24 = new TagInfo("c:get", //$NON-NLS-1$
            6, 24,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_iterate_9_3 = new TagInfo("c:iterate", //$NON-NLS-1$
            9, 3,
            new String[] {
                "select", //$NON-NLS-1$
                "var", //$NON-NLS-1$
            },
            new String[] {
                "$fcols", //$NON-NLS-1$
                "foreign", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_19 = new TagInfo("c:get", //$NON-NLS-1$
            12, 19,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($foreign/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_12_75 = new TagInfo("c:get", //$NON-NLS-1$
            12, 75,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "lowercaseFirst($foreign/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_18_39 = new TagInfo("c:get", //$NON-NLS-1$
            18, 39,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("<scroll-view>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  <view class='background'>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    <view class=\"");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_3_18 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_18); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_3_18.setRuntimeParent(null);
        _jettag_c_get_3_18.setTagInfo(_td_c_get_3_18);
        _jettag_c_get_3_18.doStart(context, out);
        _jettag_c_get_3_18.doEnd();
        out.write(" {{index%2 ==1 ? 'white':'green'}}\" wx:for=\"{{");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_3_114 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_114); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_3_114.setRuntimeParent(null);
        _jettag_c_get_3_114.setTagInfo(_td_c_get_3_114);
        _jettag_c_get_3_114.doStart(context, out);
        _jettag_c_get_3_114.doEnd();
        out.write("List}}\" wx:key=\"id\">");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("      <view class='");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_4_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_4_20.setRuntimeParent(null);
        _jettag_c_get_4_20.setTagInfo(_td_c_get_4_20);
        _jettag_c_get_4_20.doStart(context, out);
        _jettag_c_get_4_20.doEnd();
        out.write("Info' bindtap='choose");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_4_91 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_91); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_4_91.setRuntimeParent(null);
        _jettag_c_get_4_91.setTagInfo(_td_c_get_4_91);
        _jettag_c_get_4_91.doStart(context, out);
        _jettag_c_get_4_91.doEnd();
        out.write("' id=\"{{index}}\">");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("\t\t<view class=\"row\">");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("          <text class='");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_24 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_24); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_24.setRuntimeParent(null);
        _jettag_c_get_6_24.setTagInfo(_td_c_get_6_24);
        _jettag_c_get_6_24.doStart(context, out);
        _jettag_c_get_6_24.doEnd();
        out.write("Name'>{{item.name}}</text>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("          <icon class='iconfont icon-delete deleteButton' catchtap='onDelete' id=\"{{index}}\"></icon>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("        </view>        ");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_c_iterate_9_3 = context.getTagFactory().createRuntimeTag(_jetns_c, "iterate", "c:iterate", _td_c_iterate_9_3); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_iterate_9_3.setRuntimeParent(null);
        _jettag_c_iterate_9_3.setTagInfo(_td_c_iterate_9_3);
        _jettag_c_iterate_9_3.doStart(context, out);
        while (_jettag_c_iterate_9_3.okToProcessBody()) {
            out.write("        <view class=\"row\">");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("            <view>ID：{{item.id}}</view>");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("            <view>");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_12_19 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_19); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_12_19.setRuntimeParent(_jettag_c_iterate_9_3);
            _jettag_c_get_12_19.setTagInfo(_td_c_get_12_19);
            _jettag_c_get_12_19.doStart(context, out);
            _jettag_c_get_12_19.doEnd();
            out.write("：{{item.");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_12_75 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_12_75); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_12_75.setRuntimeParent(_jettag_c_iterate_9_3);
            _jettag_c_get_12_75.setTagInfo(_td_c_get_12_75);
            _jettag_c_get_12_75.doStart(context, out);
            _jettag_c_get_12_75.doEnd();
            out.write(".name}}</view>");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("        </view>\t\t   ");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_c_iterate_9_3.handleBodyContent(out);
        }
        _jettag_c_iterate_9_3.doEnd();
        out.write("      </view>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    </view>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  </view>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  <view class='addButton' bindtap='add");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_18_39 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_18_39); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_18_39.setRuntimeParent(null);
        _jettag_c_get_18_39.setTagInfo(_td_c_get_18_39);
        _jettag_c_get_18_39.doStart(context, out);
        _jettag_c_get_18_39.doEnd();
        out.write("'>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("    <icon class='iconfont icon-add'></icon>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("  </view>");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("</scroll-view>");  //$NON-NLS-1$        
    }
}
